"use strict";
const utils_request = require("../../utils/request.js");
const getElderList = (params) => utils_request.request({
  url: "/member/user/list-by-page",
  method: "get",
  params
});
const getAllElderList = (params) => utils_request.request({
  url: "/member/user/my",
  method: "get",
  params
});
/**
 * 绑定家人（添加老人信息）
 * @param {Object} params - 请求参数
 * @param {string} params.idCard - 身份证号
 * @param {string} params.name - 老人姓名
 * @param {string} params.remark - 称呼
 * @returns {Promise} 响应结果
 */
const elderBinging = (params) => utils_request.request({
  url: `/member/user/add`,
  method: "post",
  params
});
const deviceDetail = (params) => utils_request.request({
  url: `/member/user/QueryDevicePropertyStatus`,
  method: "post",
  data: params
});
const elderdeleteById = (id) => utils_request.request({
  url: `/member/user/deleteById?id=` + id,
  method: "delete"
});
const elderBloodPresh = (params) => utils_request.request({
  url: `/member/user/queryDeviceDataListByDay`,
  method: "get",
  params
});
const elderBloodPreshPing = (params) => utils_request.request({
  url: `/member/user/queryDeviceDataListByWeek`,
  method: "get",
  params
});
const getUnusualDataApi = (params) => utils_request.request({
  url: `/member/user/pageQueryAlertData`,
  method: "get",
  params
});
exports.deviceDetail = deviceDetail;
exports.elderBinging = elderBinging;
exports.elderBloodPresh = elderBloodPresh;
exports.elderBloodPreshPing = elderBloodPreshPing;
exports.elderdeleteById = elderdeleteById;
exports.getAllElderList = getAllElderList;
exports.getElderList = getElderList;
exports.getUnusualDataApi = getUnusualDataApi; 